package swu.eunbeen.util;

import java.util.logging.Logger;

import android.app.Activity;
import android.content.Intent;
import android.os.Handler;


public final class LauncherUtil {

	//private Logger log = Logger.getLogger(this.getClass());
	private static final int DISPLAY_TIME = 3000;
	private static Intent intent;

	public static void go(final Activity activity, final Class<?> cls) {
		Handler handler;

		handler = new Handler();
		handler.postDelayed(new Runnable() {
			public void run() {
				intent = new Intent(activity, cls);
				activity.startActivity(intent);
				activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
				activity.finish();
			}
		}, DISPLAY_TIME);
	}

}
